package com.agriculture.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class OrderGood implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    // 订单 id
    private Long orderId;

    // 数量
    private Integer number;

    // 商品 id
    private Long goodId;

    // 地址 id
    private Long addressBookId;

    // 下单时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    // 备注
    private String remark;

}
